package Cliente.interface_grafico;


import java.awt.Component;
import java.io.ObjectOutputStream;

import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.table.TableCellRenderer;

public class BotaoPerfilRenderer extends JButton implements TableCellRenderer{

	@Override
	public Component getTableCellRendererComponent(JTable tabela,
			Object value, boolean isSelected, boolean hasFocus, int row, int column) {
		if (isSelected) {
			setForeground(tabela.getSelectionForeground());
			setBackground(tabela.getSelectionBackground());
		} else{
			setForeground(tabela.getForeground());
			setBackground(UIManager.getColor("Button.background"));
		}
		setText("ver perfil");
		return this;
	}
}